package com.ywjh.inter.entity;

import java.sql.Timestamp;

import com.ywjh.inter.utils.StrUtil;

import net.sf.json.JSONObject;

public class DietEntity {
	private int id;
	private int patient_id;
	private int add_doc_id;
	private Timestamp add_time;
	private Timestamp start_time;
	private int status;
	private String bf_hh;
	private String bf_memo;
	private String lc_hh;
	private String lc_memo;
	private String dn_hh;
	private String dn_memo;
	private String tips;
	
	
	public Timestamp getStart_time() {
		return start_time;
	}
	public void setStart_time(Timestamp start_time) {
		this.start_time = start_time;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	
	public int getPatient_id() {
		return patient_id;
	}
	public void setPatient_id(int patient_id) {
		this.patient_id = patient_id;
	}
	public int getAdd_doc_id() {
		return add_doc_id;
	}
	public void setAdd_doc_id(int add_doc_id) {
		this.add_doc_id = add_doc_id;
	}
	public Timestamp getAdd_time() {
		return add_time;
	}
	public void setAdd_time(Timestamp add_time) {
		this.add_time = add_time;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public String getBf_hh() {
		return bf_hh;
	}
	public void setBf_hh(String bf_hh) {
		this.bf_hh = bf_hh;
	}
	public String getBf_memo() {
		return bf_memo;
	}
	public void setBf_memo(String bf_memo) {
		this.bf_memo = bf_memo;
	}
	public String getLc_hh() {
		return lc_hh;
	}
	public void setLc_hh(String lc_hh) {
		this.lc_hh = lc_hh;
	}
	public String getLc_memo() {
		return lc_memo;
	}
	public void setLc_memo(String lc_memo) {
		this.lc_memo = lc_memo;
	}
	public String getDn_hh() {
		return dn_hh;
	}
	public void setDn_hh(String dn_hh) {
		this.dn_hh = dn_hh;
	}
	public String getDn_memo() {
		return dn_memo;
	}
	public void setDn_memo(String dn_memo) {
		this.dn_memo = dn_memo;
	}
	public String getTips() {
		return tips;
	}
	public void setTips(String tips) {
		this.tips = tips;
	}
	public JSONObject toJson() {
		JSONObject json=new JSONObject();
		json.put("id", this.id);
		json.put("patient_id", this.patient_id);
		json.put("add_doc_id", this.add_doc_id);
		json.put("add_time", StrUtil.getYYYYMMDDHHMISS(add_time));
		json.put("bf_hh", this.bf_hh);
		json.put("bf_memo", this.bf_memo);
		json.put("lc_hh", this.lc_hh);
		json.put("lc_memo", this.lc_memo);
		json.put("dn_hh", this.dn_hh);
		json.put("dn_memo", this.dn_memo);
		json.put("tips", this.tips);
		json.put("status", this.status);
		json.put("start_time", StrUtil.getYYYYMMDD(start_time));
		return json;
	}
	
	
	
}
